Skip to content

Fix handling of versions with suffix#16

Merged
bertrand-lorentz merged 2 commits intodevelopfrom
bugfix/TEDEFO-2299-use-semver4j
Jun 5, 2023
Merged

Fix handling of versions with suffix#16
bertrand-lorentz merged 2 commits intodevelopfrom
bugfix/TEDEFO-2299-use-semver4j

Conversation

@bertrand-lorentz
Copy link
Copy Markdown
Contributor

@bertrand-lorentz bertrand-lorentz commented Jun 2, 2023

This does not change the API, but corrects the behavior when the version has a suffix.

Some failing tests are commented out, this will be fixed in the next
commit.
Use the Semver4j library to parse and manipulate the version.

This allows to properly handle versions with a suffix like "1.2.3-rc.1"
and "2.0.0-alpha.1"

This also fixes equals() and compareTo() for versions with a suffix.

Enable the unit tests that were failing before this fix.
@bertrand-lorentz bertrand-lorentz merged commit 3c32e73 into develop Jun 5, 2023
@bertrand-lorentz bertrand-lorentz deleted the bugfix/TEDEFO-2299-use-semver4j branch June 5, 2023 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants